package z;

import java.util.Arrays;
import java.util.Collection;
import java.util.List;

public class AsListDemo {
    public static void main(String[] args) {
        String []arr={"one","two","three","four","five"};
        System.out.println("arr数组:"+Arrays.toString(arr));
        List<String> list=Arrays.asList(arr);
        System.out.println("list集合:"+list);
        list.set(0,"zero");
        System.out.println("list集合:"+list);
        System.out.println("arr数组:"+Arrays.toString(arr));
//        list.add("six");
//        System.out.println("list集合:"+list);
//        System.out.println("arr数组:"+Arrays.toString(arr));

    }
}
